package com.yunshang.shoppingmall.service.Finace;

import com.yunshang.shoppingmall.entity.FinaceTotal;

import java.util.List;

public interface FinaceTotalService {

    int deleteByPrimaryKey(Integer fId);

    int insert(FinaceTotal record);

    int insertSelective(FinaceTotal record);

    FinaceTotal selectByPrimaryKey(Integer fId);

    int updateByPrimaryKeySelective(FinaceTotal record);

    int updateByPrimaryKey(FinaceTotal record);

    //查询用户财务余额
    FinaceTotal selectFinaceBalace(FinaceTotal finaceTotal);

    //查询用户所有财务余额
   FinaceTotal selectFinaceTotal(int userNoId,String fType);

   //跟新用户的积分余额
   int updateBalanceByUserIdAndFType(FinaceTotal finaceTotal);

    FinaceTotal selectFinaceBalaceAll(int userNoId);

}
